home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12402 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.unix.aix,comp.lang.c++
  2. Path: vixen.cso.uiuc.edu!uchinews!news
  3. From: samuels@noise.bsd.uchicago.edu (Jordan Samuels)
  4. Subject: Re: [Q] C++: STL & xlC
  5. In-Reply-To: peters@Physik.Uni-Augsburg.DE's message of Sun, 10 Mar 1996
  6.     19:34:10 GMT
  7. X-Nntp-Posting-Host: noise.bsd.uchicago.edu
  8. Message-ID: <tbbulswzhd.fsf@noise.bsd.uchicago.edu>
  9. To: peters@Physik.Uni-Augsburg.DE (Peter Schmitteckert)
  10. Followup-To: comp.unix.aix
  11. Sender: samuels@noise.bsd.uchicago.edu
  12. Organization: University of Chicago -- Academic Computing Services
  13. X-Newsreader: Gnus v5.0.8
  14. References: <Do2H0z.Doz@Yuri.CC.Uni-Augsburg.DE>
  15. Date: Tue, 19 Mar 1996 21:21:34 GMT
  16.  
  17. I am also interested in finding out about compiling with STL on an
  18. AIX platform.  Specifically, I am using:
  19.  
  20. xlC version 1.1.2.25, AIX 3.2.5 IBM RS6000/590 
  21.  
  22. I am experiencing particular problems with tree.h, but I think they are due
  23. to the general problem that the xlC compiler chokes when it's asked to
  24. believe that a default constructor exists for a class specified in a
  25. template.  To wit:
  26.  
  27. "../stl/tree.h", line 56.1: 1540-222: (S) "rb_tree<int,pair<const int,char>,sel\
  28. ect1st<pair<const int,char>,int>,less<int> >::rb_tree_node" needs a constructor\
  29.  because class member "value_field" needs a constructor initializer.
  30.  
  31. This happens when I 
  32.  
  33.   #include "map.h"
  34.  
  35. and then
  36.  
  37.   map<int, char, less<int> > m;
  38.  
  39. Thanks to anyone who can enlighten me.
  40.  
  41. Jordan
  42.